import { http } from '@/utils/http'
import { post } from '@/utils/http'

// 库存 获取车辆库存列表
export const getCarStock = (data: any) => {
  return http({
    method: 'POST',
    url: '/V5/carStock/getListV2',
    data,
  })
}

// 库存 获取车型库存列表
export const getCarModelStock = (data: any) => {
  return http({
    method: 'POST',
    url: '/V5/carModelStock/getList',
    data,
  })
}

// 车辆库存校验
export const platoonCarCheck = (data: any) => {
  return http({
    method: 'POST',
    url: '/V5/carStock/checkCarStock',
    data,
  })
}

// 排车/改排
export const platoonCar = (data: any) => {
  return http({
    method: 'POST',
    url: '/V5/sOrder/platoonCar',
    data,
  })
}

// 长租排车、改排
export const platoonCarLOrder = (data: any) => post({ url: '/V5/czsOrderInfo/platoonCar', data })

// 根据员工查询门店
export const getSiteList= (data: any) => post({ url: '/V5/siteLease/searchForStaff', data })

// 车辆临时占用
export const addTempUseApi = (data: any) => post({ url: '/V5/carStock/addTempUse', data })

// 车辆临时占用释放
export const removeTempUse = (data: any) => post({ url: '/V5/carStock/removeTempUse', data })

// 车辆临时占用批量释放
export const removeBatchTempUse = (data: any) => post({ url: '/V5/carStock/removeBatchTempUse', data })

